﻿// ע�

using IotContract.Models.Mqtt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Interfaces;
public interface IMqttServerService
{
    Task<List<MqttClientInfo>> GetMqttClientInfos(MqttProviderCommand provider);

    Task<MqttGrpcReturn> StartOrStopMqttServer(MqttProviderCommand provider);

    Task<MqttGrpcReturn> GetMqttServerStatus();
    //Task MqttGetEquips();

    Task MqttPushProcessData();

    MqttGrpcReturn StartOrStopMqttProcessData(MqttProviderCommand provider);

    MqttGrpcReturn GetDataPublishStatus();

    /// <summary>
    /// 初始化
    /// </summary>
    /// <returns></returns>
    Task<string> Initial();
    /// <summary>
    /// 关闭
    /// </summary>
    /// <returns></returns>
    Task<MqttGrpcReturn> StopMqtt();

    //Task MqttPublishEquips();

    //Task MqttPublishProcessData();
}
